package keni.html.android.framework.metadata;

import keni.html.android.framework.util.Constants;



public class FieldMetadata extends ElementBase {

	public String getDataSourceFieldName() {
	String dataSourceMapping =getProperities().get(Constants.MetadataTagName.DATASOURCEMAPPING);
	return dataSourceMapping.split("::")[1];
}

public String getDataSourceName() {
	String dataSourceMapping =getProperities().get(Constants.MetadataTagName.DATASOURCEMAPPING);
	return dataSourceMapping.split("::")[0];
}

public String getDataType() {
	return getProperities().get(Constants.MetadataTagName.DATATYPE);
}

public String getFilter() {
	return getProperities().get(Constants.MetadataTagName.FILTER);
}

public Boolean getIsIdentifier() {
	return Boolean.parseBoolean(getProperities().get(Constants.MetadataTagName.ISIDENTIFIER));
}


public Boolean getIsAssociateKey() {
	return Boolean.parseBoolean(getProperities().get(Constants.MetadataTagName.ISASSOCIATEKEY));
}

public String getBelongTo() {
	return getProperities().get(Constants.MetadataTagName.BELONGTO);
}

public String getAlias() {
	return getProperities().get(Constants.MetadataTagName.ALIAS);
}

}
